package me.riddhimanadib.formmaster.model;

/**
 * Created by Riddhi - Rudra on 28-Jul-17.
 */

public class FormElementPickerImage extends BaseFormElement {

    private String pickerTitle; // custom title for picker
    private String imagePath;

    public FormElementPickerImage() {
    }

    public static FormElementPickerImage createInstance() {
        FormElementPickerImage formElementPickerSingle = new FormElementPickerImage();
        formElementPickerSingle.setType(BaseFormElement.TYPE_PICKER_IMAGE);
        formElementPickerSingle.setPickerTitle("Pick one");
        return formElementPickerSingle;
    }


    @Override
    public FormElementPickerImage setTag(int mTag) {
        return (FormElementPickerImage) super.setTag(mTag);
    }

    @Override
    public FormElementPickerImage setType(int mType) {
        return (FormElementPickerImage) super.setType(mType);
    }

    @Override
    public FormElementPickerImage setTitle(String mTitle) {
        return (FormElementPickerImage) super.setTitle(mTitle);
    }

    @Override
    public FormElementPickerImage setValue(String mValue) {
        return (FormElementPickerImage) super.setValue(mValue);
    }

    @Override
    public FormElementPickerImage setHint(String mHint) {
        return (FormElementPickerImage) super.setHint(mHint);
    }

    @Override
    public FormElementPickerImage setRequired(boolean required) {
        return (FormElementPickerImage) super.setRequired(required);
    }

    public FormElementPickerImage setImage(String imagePath) {
        this.imagePath = imagePath;
        return this;
    }

    public FormElementPickerImage setPickerTitle(String title) {
        this.pickerTitle = title;
        return this;
    }

    public String getPickerTitle() {
        return this.pickerTitle;
    }

    public String getImage() {
        return imagePath;
    }
}
